package top.dark.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.dark.common.utils.PageUtils;
import top.dark.member.entity.MemberEntity;
import top.dark.member.exception.PhoneExistException;
import top.dark.member.exception.UsernameExistException;
import top.dark.member.vo.RegisterVo;
import top.dark.member.vo.SocialGithubUserVo;
import top.dark.member.vo.UserLoginVo;

import java.util.Map;

/**
 * 会员
 *
 * @author lijiao
 * @email DarknessShadow11@outlook.com
 * @date 2021-02-01 17:27:23
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void register(RegisterVo vo);

    void checkedExistUsername(String userName) throws UsernameExistException;

    void checkedExistPhone(String phone) throws PhoneExistException;

    MemberEntity login(UserLoginVo vo);

    MemberEntity oauthGithubLogin(SocialGithubUserVo vo);
}

